package com.gientech.loancenter.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("t_loan_apply")
public class LoanApply {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 贷款编号
     */
    private String applyNumber;

    /**
     * 客户id
     */
    private Long customerId;

    /**
     * 客户姓名
     */
    private String customerName;

    /**
     * 贷款金额
     */
    private float loanAmount;

    /**
     * 贷款用途
     */
    private String purpose;

    /**
     * 收款银行卡号
     */
    private String bankNumber;

    /**
     * 还款期限
     */
    private String loanTerm;

    /**
     * 贷款利率
     */
    private float loanRate;

    /**
     * 发放金额
     */
    private float releaseAmount;

    /**
     * 发放时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date releaseTime;

    /**
     * 贷款状态
     */
    private int status;

    /**
     * 创建时间
     */
    private Date createTime;

}
